package me.send.produce.data.controller;

import java.util.List;
import java.util.Map;

import me.send.data.service.service.OrdertypeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="ordertype")
public class OrdertypeController {

	@Autowired
	private OrdertypeService ordertypeService;
	
	@RequestMapping(value="list/all")
	@ResponseBody
	public List<Map<String, Object>> list_all(){
		return ordertypeService.list_all();
	}
	
}
